gtk4.git
10 years agoAdwaita: make the paned wide separator scss code correct
Lapo Calamandrei [Sat, 9 Jan 2016 12:04:27 +0000 (13:04 +0100)]
Adwaita: make the paned wide separator scss code correct

unfortunatelly the results are not, borders behaves in a weird way
here as well, if this don't get fixed I'll rely on background here
too.

10 years agoAdwaita: some scss cosmetic changes
Lapo Calamandrei [Sat, 9 Jan 2016 11:38:49 +0000 (12:38 +0100)]
Adwaita: some scss cosmetic changes

10 years agoAdwaita: fix thin paned separators
Lapo Calamandrei [Sat, 9 Jan 2016 11:31:41 +0000 (12:31 +0100)]
Adwaita: fix thin paned separators

10 years agoAdwaita: use stricter selectors on paned separators
Lapo Calamandrei [Sat, 9 Jan 2016 11:05:31 +0000 (12:05 +0100)]
Adwaita: use stricter selectors on paned separators

this fixes the "fat" separator on gedit headerbar, since it was
cought by the paned separator styling.

10 years agoAdwaita: remove old headerbar separator styling
Lapo Calamandrei [Sat, 9 Jan 2016 10:55:40 +0000 (11:55 +0100)]
Adwaita: remove old headerbar separator styling

which was actually selecting nothing now.

10 years agoAdwaita: add vertical margins to headebar entries and separators
Lapo Calamandrei [Sat, 9 Jan 2016 10:25:08 +0000 (11:25 +0100)]
Adwaita: add vertical margins to headebar entries and separators

10 years agoAdwaita: add vertical margins to headerbar buttons
Lapo Calamandrei [Sat, 9 Jan 2016 09:19:47 +0000 (10:19 +0100)]
Adwaita: add vertical margins to headerbar buttons

to avoid them spanning the whole headerbar height with the changes
introduced in my last commit.

10 years agoCSS documenation improvements
Matthias Clasen [Sat, 9 Jan 2016 04:31:48 +0000 (23:31 -0500)]
CSS documenation improvements

Work around some problems with the formatting of the online
docs, and split off the properties as a separate chapter.

10 years ago3.19.6
Matthias Clasen [Fri, 8 Jan 2016 19:51:36 +0000 (14:51 -0500)]
3.19.6

10 years agoFix make dist
Matthias Clasen [Fri, 8 Jan 2016 22:51:53 +0000 (17:51 -0500)]
Fix make dist

I've forgotten another place when renaming HighContrast inverse.

10 years agoreftests: Drop deprecated style properties
Matthias Clasen [Fri, 8 Jan 2016 20:56:27 +0000 (15:56 -0500)]
reftests: Drop deprecated style properties

10 years agoUpdate expect output of a11y tests
Matthias Clasen [Fri, 8 Jan 2016 20:45:32 +0000 (15:45 -0500)]
Update expect output of a11y tests

10 years agoUpdate the list of required cursors
Matthias Clasen [Fri, 8 Jan 2016 20:38:38 +0000 (15:38 -0500)]
Update the list of required cursors

We're now using standard cursor names for DND, so check for these.

10 years agowayland: Ensure we have a dnd-ask cursor
Matthias Clasen [Fri, 8 Jan 2016 20:38:02 +0000 (15:38 -0500)]
wayland: Ensure we have a dnd-ask cursor

We use this for DND, so make sure that we fall back to some other
cursor if this one isn't present.

10 years agox11: Ensure we have a dnd-ask cursor
Matthias Clasen [Fri, 8 Jan 2016 20:37:10 +0000 (15:37 -0500)]
x11: Ensure we have a dnd-ask cursor

We use this for DND, so make sure that we fall back to some other
cursor if this one isn't present.

10 years agoUse standard cursor names for DND
Matthias Clasen [Fri, 8 Jan 2016 20:36:32 +0000 (15:36 -0500)]
Use standard cursor names for DND

At least as far as we have them. CSS has on equivalent of dnd-ask,
so we keep using that name as-is.

10 years agocolorswatch: don't apply padding twice
Cosimo Cecchi [Fri, 8 Jan 2016 22:58:25 +0000 (14:58 -0800)]
colorswatch: don't apply padding twice

Instead of taking the border and manually removing it from the
allocation, render our background over all the border allocation box, as
that's more correct and does not take padding into account twice.

10 years agopaned: Use GtkGestureDrag for anything else than touch
Carlos Garnacho [Thu, 24 Dec 2015 18:03:02 +0000 (19:03 +0100)]
paned: Use GtkGestureDrag for anything else than touch

The GtkGesturePan behavior of locking onto certain orientations may
come across as confusing, and is not strictly necessary for mice and
other pointing devices.

As GtkGesturePan is also a GtkGestureDrag, we just use the same
callbacks on both gestures.

https://bugzilla.gnome.org/show_bug.cgi?id=759670

10 years agowayland: Force the grab cursor while a grab is active
Carlos Garnacho [Fri, 8 Jan 2016 20:45:03 +0000 (21:45 +0100)]
wayland: Force the grab cursor while a grab is active

When a cursor is specified in gdk_seat_grab(), the cursor is reverted as
soon as the pointer enters or leaves another window.

To avoid this issue, store the grab cursor separately, so we force-apply
it in ::set_window_cursor(). Also, unset early the seat info from the
window on gdk_seat_ungrab(), so the next time switch_to_pointer_grab()
happens we end up picking the cursor set for the window underneath the
pointer window.

Based on a patch by Olivier Fourdan <ofourdan@redhat.com>.

https://bugzilla.gnome.org/show_bug.cgi?id=760213

10 years agox11: Initialize GdkWindowAttr struct memory
Carlos Garnacho [Thu, 7 Jan 2016 17:55:04 +0000 (18:55 +0100)]
x11: Initialize GdkWindowAttr struct memory

Valgrind complains about jumps based on uninitialized values
otherwise.

10 years agoAdwaita: avoid too tall headerbars
Lapo Calamandrei [Fri, 8 Jan 2016 19:56:40 +0000 (20:56 +0100)]
Adwaita: avoid too tall headerbars

the vertical padding from the headerbar has been removed, now the
sizing is done with min-height, this avoids title and subtitle
labels making the headbar.

10 years agoAvoid an X error
Matthias Clasen [Fri, 8 Jan 2016 18:48:10 +0000 (13:48 -0500)]
Avoid an X error

We are getting the mime data destroy notify called when we
destroy the surface in finalize. Trying to set the XSync counters
at this time is a) pointless and b) yielding an X error because
the counters have already been destroyed.
To avoid this, unhook the damage tracking before destroying
the surface.

https://bugzilla.gnome.org/show_bug.cgi?id=760188

10 years agox11: Fix damage tracking hack
Matthias Clasen [Fri, 8 Jan 2016 18:44:36 +0000 (13:44 -0500)]
x11: Fix damage tracking hack

We are setting mime data with a destroy notify on the cairo
surface to get notified when cairo registers damage for the
surface (in that case, it clears the mime data, calling the
destroy notify). Unfortunately, the destroy notify is also
called when we remove the mime data ourselves, which was
not intentional.

Use a flag in the window impl struct to ignore the callback
when we are clearing the hook.

10 years agoBe more careful with floating point divisions
Matthias Clasen [Fri, 8 Jan 2016 18:17:58 +0000 (13:17 -0500)]
Be more careful with floating point divisions

The assumption that MIN() takes care of all infinities here
turns out to be wrong. We were getting inf and -nan for some
combinations of 0 width/height and corners, leading to invalid
matrices and cairo errors.

https://bugzilla.gnome.org/show_bug.cgi?id=759668

10 years agox11: Simplify drag cancel animation setup
Matthias Clasen [Fri, 8 Jan 2016 16:30:44 +0000 (11:30 -0500)]
x11: Simplify drag cancel animation setup

Instead of creating an intermediate pixbuf, just render
the window surface onto the new surface. Doing things this
way lets us avoid the cairo_surface_mark_dirty() call in
gdk_pixbuf_get_from_window(), which is not generally safe
to call on 'random' surfaces - it asserts that the surface
has no mime data attached, and the X11 backend uses mime
data for damage tracking purposes...

10 years agox11: Keep the drag window alive longer
Matthias Clasen [Fri, 8 Jan 2016 16:29:58 +0000 (11:29 -0500)]
x11: Keep the drag window alive longer

We destroy the widget that is wrapped around the drag window
when the object data on the drag context gets cleared. Destroying
the window before that happens leads to unpleasantries. E.g. we may
try to access the frame clock, which doesn't exist anymore, and
things go downhill from there. So, keep the window alive for
a little longer.

10 years agowayland: Keep the drag window alive longer
Matthias Clasen [Fri, 8 Jan 2016 16:22:47 +0000 (11:22 -0500)]
wayland: Keep the drag window alive longer

We destroy the widget that is wrapped around the drag window
when the object data on the drag context gets cleared. Destroying
the window before that happens leads to unpleasantries. E.g. we may
try to access the frame clock, which doesn't exist anymore, and
things go downhill from there. So, keep the window alive for
a little longer.

10 years agoForgotten file
Matthias Clasen [Fri, 8 Jan 2016 16:12:55 +0000 (11:12 -0500)]
Forgotten file

One was forgotten in the dark -> inverse rename.

10 years agocolor editor: Set a name on the color sample
Matthias Clasen [Fri, 8 Jan 2016 16:08:37 +0000 (11:08 -0500)]
color editor: Set a name on the color sample

This can be used to tweak the style from CSS, via #editor-color-sample.

10 years agoAdwaita: remove some now uneeded selectors
Lapo Calamandrei [Fri, 8 Jan 2016 15:48:01 +0000 (16:48 +0100)]
Adwaita: remove some now uneeded selectors

...related to image-button sizing which is handled differently now.

10 years agoAdwaita: colorchooser and color button style rewrite
Lapo Calamandrei [Fri, 8 Jan 2016 15:31:30 +0000 (16:31 +0100)]
Adwaita: colorchooser and color button style rewrite

fixing https://bugzilla.gnome.org/show_bug.cgi?id=760169 in the
process.

10 years agoCJK Windows: Silence gtk_style_context_set_state() warnings
Chun-wei Fan [Fri, 8 Jan 2016 10:44:24 +0000 (18:44 +0800)]
CJK Windows: Silence gtk_style_context_set_state() warnings

We need to update calls to gtk_style_context_set_state() in
gtkimcontextime.c, so that the state passed into that function would be in
line with what GtkStyleContext expects, due to updates in the CSS
machinery, as outlined in this link[1], which is based on information in
in Matthias' blog[2].

Doing so will silence the gtk_style_context_set_state() warnings, which is
emitted when a widget uses gtkimcontext on Windows with CJK IME, which will
in turn call gtkimcontextime.

[1]: http://feaneron.com/2016/01/04/quick-guide-to-port-an-app-for-gtk-3-20/
[2]: https://blogs.gnome.org/mclasen/2015/11/20/a-gtk-update/

https://bugzilla.gnome.org/show_bug.cgi?id=760314

10 years agoRevert "Translate GDK_KEY_KP_Decimal according to locale"
Matthias Clasen [Fri, 8 Jan 2016 13:59:02 +0000 (08:59 -0500)]
Revert "Translate GDK_KEY_KP_Decimal according to locale"

This reverts commit 7c7fde136e1fd1197df1881a3bbd975c4cb1c01a.

Too much controversy for this minor improvement.
See https://bugzilla.gnome.org/show_bug.cgi?id=756751

10 years agoRename the HighContastInverse css files
Matthias Clasen [Fri, 8 Jan 2016 12:39:17 +0000 (07:39 -0500)]
Rename the HighContastInverse css files

Renaming the files from -dark to -inverse makes it more obvious
that this is not a dark variant in the sense of the 'prefer-dark'
setting, but rather a separate theme (sharing the same CSS).

10 years agoDocument caret CSS properties
Matthias Clasen [Fri, 8 Jan 2016 04:56:03 +0000 (23:56 -0500)]
Document caret CSS properties

10 years agoDeprecate cursor-color style properties
Matthias Clasen [Thu, 7 Jan 2016 03:12:35 +0000 (22:12 -0500)]
Deprecate cursor-color style properties

These have been replaced by CSS properties.

10 years agoUse the caret-color properties for drawing carets
Matthias Clasen [Thu, 7 Jan 2016 03:07:09 +0000 (22:07 -0500)]
Use the caret-color properties for drawing carets

Replace the cursor-color and secondary-cursor-color style
properties with the caret-color and -gtk-secondary-caret-color
CSS properties.

For the 'auto' value of these properties, we keep the same
behavior that we used to have when the style properties are
not explicitly set.

10 years agoAdd the caret-color CSS property
Matthias Clasen [Thu, 7 Jan 2016 03:05:29 +0000 (22:05 -0500)]
Add the caret-color CSS property

This property is defined in http://www.w3.org/TR/css3-ui/#caret-color.
We also add a -gtk-secondary-caret-color property, since GTK+ has
supported differently colored split cursors in the past. Unlike
CSS, we don't support the weakly defined auto keyword, and just
use currentColor as the initial value.

10 years agogtk3-demo: Remove unused GtkCellView
Timm Bäder [Fri, 8 Jan 2016 12:23:56 +0000 (13:23 +0100)]
gtk3-demo: Remove unused GtkCellView

10 years agointrospection: This patch fixes nullable return values fixes for the following symbol...
Alberto Ruiz [Mon, 28 Dec 2015 20:14:08 +0000 (20:14 +0000)]
introspection: This patch fixes nullable return values fixes for the following symbols in gtk

  gtk_accel_group_query
  gtk_accel_group_from_accel_closure
  gtk_accel_label_get_accel_widget
  gtk_accessible_get_widget
  gtk_actionable_get_action_name
  gtk_app_chooser_get_app_info
  gtk_app_chooser_button_get_heading
  gtk_app_chooser_dialog_get_heading
  gtk_application_get_window_by_id
  gtk_assistant_get_nth_page
  gtk_binding_set_find
  gtk_builder_get_object
  gtk_builder_lookup_callback_symbol
  gtk_builder_get_application
  gtk_button_get_image
  gtk_cell_area_get_focus_from_sibling
  gtk_cell_renderer_start_editing
  gtk_cell_view_get_model
  gtk_cell_view_get_displayed_row
  gtk_clipboard_get_owner
  gtk_container_get_focus_child
  gtk_container_get_focus_vadjustment
  gtk_container_get_focus_hadjustment
  gtk_dialog_get_widget_for_response
  gtk_drag_get_source_widget
  gtk_drag_dest_get_target_list
  gtk_drag_source_get_target_list
  gtk_entry_completion_get_model
  gtk_entry_completion_compute_prefix
  gtk_expander_get_label_widget
  gtk_file_chooser_get_filename
  gtk_file_chooser_get_current_folder
  gtk_file_chooser_get_uri
  gtk_file_chooser_get_current_folder_uri
  gtk_file_chooser_get_preview_widget
  gtk_file_chooser_get_preview_file
  gtk_file_chooser_get_preview_filename
  gtk_file_chooser_get_preview_uri
  gtk_file_chooser_get_extra_widget
  gtk_file_chooser_get_filter
  gtk_file_chooser_native_get_accept_label
  gtk_file_chooser_native_get_cancel_label
  gtk_file_filter_get_name
  gtk_font_chooser_get_font_family
  gtk_font_chooser_get_font_face
  gtk_font_chooser_get_font
  gtk_font_chooser_get_font_desc
  gtk_font_chooser_get_font_map
  gtk_frame_get_label
  gtk_gesture_get_device
  gtk_gesture_get_window
  gtk_gl_area_get_error
  gtk_header_bar_get_title
  gtk_header_bar_get_subtitle
  gtk_header_bar_get_custom_title
  gtk_icon_info_get_filename
  gtk_icon_view_get_path_at_pos
  gtk_icon_view_get_model
  gtk_image_get_pixbuf
  gtk_image_get_animation
  gtk_label_get_mnemonic_widget
  gtk_label_get_attributes
  gtk_check_version
  gtk_menu_button_get_popup
  gtk_menu_button_get_menu_model
  gtk_menu_button_get_align_widget
  gtk_menu_button_get_popover
  gtk_menu_item_get_submenu
  gtk_menu_item_get_accel_path
  gtk_native_dialog_get_title
  gtk_native_dialog_get_transient_for
  gtk_notebook_get_nth_page
  gtk_notebook_get_tab_label_text
  gtk_notebook_get_menu_label
  gtk_notebook_get_menu_label_text
  gtk_notebook_get_group_name
  gtk_notebook_get_action_widget
  gtk_offscreen_window_get_surface
  gtk_offscreen_window_get_pixbuf
  gtk_paned_get_child1
  gtk_paned_get_child2
  gtk_places_sidebar_get_location
  gtk_places_sidebar_get_nth_bookmark
  gtk_plug_get_socket_window
  gtk_popover_get_default_widget
  gtk_progress_bar_get_text
  gtk_recent_filter_get_name
  gtk_recent_manager_lookup_item
  gtk_settings_get_default
  gtk_socket_get_plug_window
  gtk_stack_sidebar_get_stack
  gtk_stack_switcher_get_stack
  gtk_style_context_get_section
  gtk_style_context_get_parent
  gtk_style_context_get_frame_clock
  gtk_test_find_widget
  gtk_text_buffer_get_mark
  gtk_text_tag_table_lookup
  gtk_text_view_get_tabs
  gtk_text_view_toggle_cursor_visible
  gtk_text_view_get_window
  gtk_toolbar_get_nth_item
  gtk_tool_button_get_label
  gtk_tool_button_get_icon_name
  gtk_tool_button_get_label_widget
  gtk_tool_button_get_icon_widget
  gtk_tool_palette_get_drop_item
  gtk_tool_palette_get_drop_group
  gtk_tree_model_filter_convert_child_path_to_path
  gtk_tree_model_filter_convert_path_to_child_path
  gtk_tree_model_sort_convert_child_path_to_path
  gtk_tree_model_sort_convert_path_to_child_path
  gtk_tree_view_get_column
  gtk_tree_view_get_bin_window
  gtk_tree_view_column_get_widget
  gtk_tree_view_column_get_tree_view
  gtk_widget_get_frame_clock
  gtk_window_group_get_current_device_grab
  GtkTextBufferSerializeFunc

10 years agowayland: Update parent of dialogs without transient
Olivier Fourdan [Tue, 8 Dec 2015 15:33:45 +0000 (16:33 +0100)]
wayland: Update parent of dialogs without transient

X11 has the notions of "transient for group", and while it's an ICCCM
violation, it's commonly used and documented that a window manager
would treat a window with transient_for set to None to transient for all
windows of its group.

gtk uses this when an application sets a dialog type window but does not
specify an explicit transient.

While this works on X11, there is no such thing as groups in Wayland and
the closest equivalent which is set_parent() in xdg-shell takes only one
parent. This is what is used for modal dialogs.

To get something similar in behavior to what is available on X11, a
solution is to update the parent() of the dialogs without transient when
the active surface changes.

Bugzilla: https://bugzilla.gnome.org/show_bug.cgi?id=759161

10 years agowayland: prefer subsurface when possible
Olivier Fourdan [Mon, 21 Dec 2015 13:35:53 +0000 (14:35 +0100)]
wayland: prefer subsurface when possible

Quite a few applications use GTK_WINDOW_POPUP to create various
temporary windows and place then on screen. That works fine on X11 but
on Wayland there is no global coordinate system for regular surfaces.

If the application is using a gdk temp window and set a parent with
gtk_window_transient_for(), the gdk wayland backend has all it needs to
create a subsurface that can be placed at will by the application.

Bugzilla: https://bugzilla.gnome.org/show_bug.cgi?id=759738

10 years agorevealer: Propagate draw event
Timm Bäder [Fri, 8 Jan 2016 08:38:32 +0000 (09:38 +0100)]
revealer: Propagate draw event

10 years agoGtkPopover: Protect against transparent backgrounds
Timm Bäder [Tue, 5 Jan 2016 18:05:43 +0000 (19:05 +0100)]
GtkPopover: Protect against transparent backgrounds

If the background is transparent, we can't use it for the input shape,
since that will be empty. Draw a box with rounded corners irectly
instead, in fully opaque black.

https://bugzilla.gnome.org/show_bug.cgi?id=759905

10 years agogdkwindow-x11: Ensure that extended update counter is freed
Ben Gamari [Tue, 5 Jan 2016 23:36:21 +0000 (00:36 +0100)]
gdkwindow-x11: Ensure that extended update counter is freed

I believe this lead to rampant leakage of SyncCounters by
gnome-terminal.

https://bugzilla.gnome.org/show_bug.cgi?id=760188

10 years agoinspector: Sort themes in the various theme combos
Matthias Clasen [Fri, 8 Jan 2016 00:49:17 +0000 (19:49 -0500)]
inspector: Sort themes in the various theme combos

It is nicer if the themes show up in a predictable order,
so sort them alphabetically.

10 years agoinspector: Add HighContrastInverse to list of themes
Matthias Clasen [Fri, 8 Jan 2016 00:50:15 +0000 (19:50 -0500)]
inspector: Add HighContrastInverse to list of themes

10 years agoRename HighContrast-dark to HighContrastInverse
Matthias Clasen [Fri, 8 Jan 2016 00:47:58 +0000 (19:47 -0500)]
Rename HighContrast-dark to HighContrastInverse

For accessibility purposes, it is better to have this as a
separate theme than as a dark variant of the HighContrast theme.

10 years agoAdwaita: rounded corners on iconview selection
Lapo Calamandrei [Fri, 8 Jan 2016 00:38:42 +0000 (01:38 +0100)]
Adwaita: rounded corners on iconview selection

10 years agoAdwaita: fix calendar invisible selection
Lapo Calamandrei [Fri, 8 Jan 2016 00:37:20 +0000 (01:37 +0100)]
Adwaita: fix calendar invisible selection

10 years agocolorswatch: Fix the overlay
Matthias Clasen [Fri, 8 Jan 2016 00:20:55 +0000 (19:20 -0500)]
colorswatch: Fix the overlay

I misunderstood what the overlay is good for: We need to allocate
it the full size of the widget. since we are using it to render
a background gradient *over* the application-rendered color.

At the same time, save some 100 lines of code by using an icon
helper as gadget, instead of handling the icon manually.

10 years agocolor swatch: Fix up rendering
Matthias Clasen [Thu, 7 Jan 2016 23:38:31 +0000 (18:38 -0500)]
color swatch: Fix up rendering

gtk_render_content_path is expecting the full box dimensions,
not just the content area. So, add the border before calling it.

Note it is still possible to have some separation between the
color and the border, by setting padding.

10 years agogtkbuilder: Install gettext ITS files
Daiki Ueno [Wed, 6 Jan 2016 09:09:04 +0000 (18:09 +0900)]
gtkbuilder: Install gettext ITS files

Recent gettext has a feature to allow consumer projects to supply their
own string extraction rules for XML files, in ITS format.

Gettext still ships the rule for *.ui, but it would be better
maintained in the upstream project.

https://bugzilla.gnome.org/show_bug.cgi?id=760202

10 years agoUpdated Spanish translation
Daniel Mustieles [Thu, 7 Jan 2016 22:15:11 +0000 (23:15 +0100)]
Updated Spanish translation

10 years agoUpdated Spanish translation
Daniel Mustieles [Thu, 7 Jan 2016 22:14:58 +0000 (23:14 +0100)]
Updated Spanish translation

10 years agoImplement transitions for radial gradients
Matthias Clasen [Thu, 7 Jan 2016 21:30:19 +0000 (16:30 -0500)]
Implement transitions for radial gradients

This was missing in the initial implementation.

10 years agoDon't interpolate between keywords
Matthias Clasen [Thu, 7 Jan 2016 21:10:10 +0000 (16:10 -0500)]
Don't interpolate between keywords

Transitioning between linear gradients like
linear-gradient(to top, yellow, green) and
linear-gradient(to left, yellow, green) was yielding
nonsensical results, with the gradient line jumping around
wildly. Fix this by falling back to stupid image interpolation
for these cases.

10 years agoUpdated Norwegian bokmål translation.
Kjartan Maraas [Thu, 7 Jan 2016 20:54:51 +0000 (21:54 +0100)]
Updated Norwegian bokmål translation.

10 years agoGtkCssGadget: Set valid clip values for invisible gadgets
Timm Bäder [Thu, 7 Jan 2016 19:33:25 +0000 (20:33 +0100)]
GtkCssGadget: Set valid clip values for invisible gadgets

10 years agocolor swatch: Remove a stray frame
Matthias Clasen [Thu, 7 Jan 2016 18:24:32 +0000 (13:24 -0500)]
color swatch: Remove a stray frame

When using a gadget, the border is free, no need to call
gtk_render_frame ourselves.

10 years agoGtkModelButton: Remove some margins
Timm Bäder [Thu, 7 Jan 2016 17:27:11 +0000 (18:27 +0100)]
GtkModelButton: Remove some margins

Now that we can use margins from css for this, remove the margins we set
in code and use css instead.

10 years agoGtkModelButton: Remove always-zero variable
Timm Bäder [Thu, 7 Jan 2016 17:25:22 +0000 (18:25 +0100)]
GtkModelButton: Remove always-zero variable

10 years agoClarified the function docs for gtk_css_provider_load_from_data().
Eric Williams [Wed, 6 Jan 2016 20:27:53 +0000 (15:27 -0500)]
Clarified the function docs for gtk_css_provider_load_from_data().

https://bugzilla.gnome.org/show_bug.cgi?id=760238

10 years agowayland: Only do cursor name fallback for standard names
Matthias Clasen [Wed, 6 Jan 2016 19:56:06 +0000 (14:56 -0500)]
wayland: Only do cursor name fallback for standard names

Always returning a left_ptr if we can't find anything better
broke firefox application-specific fallback for missing cursors.
Keep that working by only doing the fallback for the CSS cursor
names, not for things like hashes.

https://bugzilla.gnome.org/show_bug.cgi?id=760141

10 years agox11: Only do cursor name fallback for standard names
Matthias Clasen [Wed, 6 Jan 2016 19:54:33 +0000 (14:54 -0500)]
x11: Only do cursor name fallback for standard names

Always returning a left_ptr if we can't find anything better
broke firefox application-specific fallback for missing cursors.
Keep that working by only doing the fallback for the CSS cursor
names, not for things like hashes.

https://bugzilla.gnome.org/show_bug.cgi?id=760141

10 years agoAdd context-menu to the list of standard cursor names
Matthias Clasen [Wed, 6 Jan 2016 19:53:45 +0000 (14:53 -0500)]
Add context-menu to the list of standard cursor names

Adwaita doesn't have this one, but we are falling to the
default cursor anyway.

10 years agoAdd a test for ltr vs rtl boxes.
Matthias Clasen [Wed, 6 Jan 2016 04:24:51 +0000 (23:24 -0500)]
Add a test for ltr vs rtl boxes.

This tests that horizontal boxes flip their child nodes
according to text direction to maintain the left-to-right
ordering of child nodes for both text directions.

10 years agoCSS node tests: Add a way to test rtl vs ltr
Matthias Clasen [Wed, 6 Jan 2016 04:22:28 +0000 (23:22 -0500)]
CSS node tests: Add a way to test rtl vs ltr

CSS nodes have a linear sibling relationship; this is supposed
to correspond to left-to-right placement in horizontal arrangements.
This commit explicitly sets the text direction to rtl if the
filename ends in .rtl.ui, so we can test differences in node
tree layout between text directions.

10 years agoGtkListBox: Optimize _get_row_at_y a bit
Timm Bäder [Wed, 6 Jan 2016 09:58:08 +0000 (10:58 +0100)]
GtkListBox: Optimize _get_row_at_y a bit

Use g_sequence_lookup for a binary search over the rows.

10 years agoGtkListBox: get_row_at_y can return NULL
Timm Bäder [Wed, 6 Jan 2016 09:46:29 +0000 (10:46 +0100)]
GtkListBox: get_row_at_y can return NULL

10 years agoHighContrast: Fix make dist
Rico Tzschichholz [Wed, 6 Jan 2016 14:17:52 +0000 (15:17 +0100)]
HighContrast: Fix make dist

10 years agoprinting: always propagate Collate value
Felipe Borges [Wed, 6 Jan 2016 13:47:48 +0000 (14:47 +0100)]
printing: always propagate Collate value

https://bugzilla.gnome.org/show_bug.cgi?id=728344

10 years agoVisual Studio builds: Use _USE_MATH_DEFINES
Chun-wei Fan [Wed, 6 Jan 2016 13:12:19 +0000 (21:12 +0800)]
Visual Studio builds: Use _USE_MATH_DEFINES

... to fix the build as some C99 math constant macros are being used, such
as M_SQRT2.

10 years agodocs: cleanup duplication of words
Wonchul Lee [Tue, 5 Jan 2016 07:48:48 +0000 (16:48 +0900)]
docs: cleanup duplication of words

https://bugzilla.gnome.org/show_bug.cgi?id=760148

10 years agoHighContrast: Improve search bar appearance
Matthias Clasen [Wed, 6 Jan 2016 03:33:20 +0000 (22:33 -0500)]
HighContrast: Improve search bar appearance

Follow the generally white background we use everywhere else.
This is not perfect, we get double borders when the search bar
is shown, as can be seen in gtk3-widget-factory.

10 years agoHighContrast: Fix up action bar styling
Matthias Clasen [Wed, 6 Jan 2016 03:22:47 +0000 (22:22 -0500)]
HighContrast: Fix up action bar styling

Since HighContrast is not using different background colors
as much as Adwaita, we need to add borders to prevent things
from running into each other.

10 years agoHighContrast: Drop deprecated style properties
Matthias Clasen [Wed, 6 Jan 2016 01:39:16 +0000 (20:39 -0500)]
HighContrast: Drop deprecated style properties

10 years agoHighContrast: Add a dark variant
Matthias Clasen [Wed, 6 Jan 2016 00:25:06 +0000 (19:25 -0500)]
HighContrast: Add a dark variant

This is just a quick experiment, and so I have another theme with
a dark variant to play with.

10 years agoHighContrast: Add a missing unit
Matthias Clasen [Tue, 5 Jan 2016 21:54:40 +0000 (16:54 -0500)]
HighContrast: Add a missing unit

10 years agoHighContrast: Fix sidebar borders
Matthias Clasen [Tue, 5 Jan 2016 21:53:03 +0000 (16:53 -0500)]
HighContrast: Fix sidebar borders

10 years agoHighContrast: Fix checkboxes in selected context
Matthias Clasen [Tue, 5 Jan 2016 19:37:22 +0000 (14:37 -0500)]
HighContrast: Fix checkboxes in selected context

Set a proper color so checks and radios don't disappear on the
black selection background.

10 years agoHighConstast: Some fixes for treeview headers
Matthias Clasen [Tue, 5 Jan 2016 19:19:58 +0000 (14:19 -0500)]
HighConstast: Some fixes for treeview headers

10 years agoHighContrast: Keep spinbuttons from resizing on hover
Matthias Clasen [Tue, 5 Jan 2016 15:55:34 +0000 (10:55 -0500)]
HighContrast: Keep spinbuttons from resizing on hover

10 years agoHighContrast: Fix checks and radios
Matthias Clasen [Tue, 5 Jan 2016 12:48:54 +0000 (07:48 -0500)]
HighContrast: Fix checks and radios

10 years agoHighContrast: Some menu fixes
Matthias Clasen [Tue, 5 Jan 2016 12:40:39 +0000 (07:40 -0500)]
HighContrast: Some menu fixes

10 years agoHighContrast: paned fixes
Matthias Clasen [Tue, 5 Jan 2016 12:17:16 +0000 (07:17 -0500)]
HighContrast: paned fixes

Mostly copied from Adwaita.

10 years agoHighContrast: more combobox fixes
Cosimo Cecchi [Tue, 5 Jan 2016 18:01:33 +0000 (10:01 -0800)]
HighContrast: more combobox fixes

Taken from Adwaita.

10 years agodocs: try to clarify widget_get_state_flags vs context_get_state
Paolo Borelli [Tue, 5 Jan 2016 17:40:25 +0000 (18:40 +0100)]
docs: try to clarify widget_get_state_flags vs context_get_state

10 years agoHighContrast: Some combobox fixes
Matthias Clasen [Tue, 5 Jan 2016 04:52:28 +0000 (23:52 -0500)]
HighContrast: Some combobox fixes

Mostly copied from Adwaita.

10 years agoHighContrast: Fix frame styling
Matthias Clasen [Tue, 5 Jan 2016 04:45:13 +0000 (23:45 -0500)]
HighContrast: Fix frame styling

10 years agoHighContrast: fix up color chooser theming
Matthias Clasen [Tue, 5 Jan 2016 04:28:32 +0000 (23:28 -0500)]
HighContrast: fix up color chooser theming

Mostly copied from Adwaita.

10 years agoHighContrast: Fix up stackswitcher
Matthias Clasen [Tue, 5 Jan 2016 03:08:53 +0000 (22:08 -0500)]
HighContrast: Fix up stackswitcher

Copy Some of the more recent additions from Adwaita.

10 years agoHighContrast: No blue spinners
Matthias Clasen [Tue, 5 Jan 2016 02:35:55 +0000 (21:35 -0500)]
HighContrast: No blue spinners

Spinners are drawing backgrounds now, so setting a blue
background color is pretty distracting.

10 years agoMake sure icons update on theme change
Matthias Clasen [Tue, 5 Jan 2016 02:22:11 +0000 (21:22 -0500)]
Make sure icons update on theme change

Gadgets don't connect to style-changed for widget nodes, and
GtkImage uses its widget node for the icon helper. The visible
effect of this is that symbolic icons don't change color when
switching to the dark variant of Adwaita.

Fix this by manually invalidating the icon helper.

10 years agowidget-factory: Make the notebook action truly circular
Matthias Clasen [Mon, 4 Jan 2016 21:58:10 +0000 (16:58 -0500)]
widget-factory: Make the notebook action truly circular

The sidebar-button class doesn't work out so well for this
since it has horizontal padding.

10 years agolevelbar: loop over all block gadgets to determine min size
Cosimo Cecchi [Tue, 5 Jan 2016 02:14:33 +0000 (18:14 -0800)]
levelbar: loop over all block gadgets to determine min size

Instead of just picking the first. This is because the theme might set a
border on only one of them, like the HighContrast theme does.

10 years agolevelbar: fix parameter confusion
Cosimo Cecchi [Tue, 5 Jan 2016 01:55:26 +0000 (17:55 -0800)]
levelbar: fix parameter confusion

We're always interested in the minimum size.

10 years agoHighContrast: update to use -gtk-outline-radius
Cosimo Cecchi [Tue, 5 Jan 2016 01:50:24 +0000 (17:50 -0800)]
HighContrast: update to use -gtk-outline-radius

10 years agoHighContrast: update to use :hover
Cosimo Cecchi [Tue, 5 Jan 2016 01:49:41 +0000 (17:49 -0800)]
HighContrast: update to use :hover

10 years agoHighContrast: update to use :indeterminate
Cosimo Cecchi [Tue, 5 Jan 2016 01:48:59 +0000 (17:48 -0800)]
HighContrast: update to use :indeterminate